package com.san.metadata.domain;

import java.util.Date;

import lombok.Data;

/**
 * 数据源DO
 * @author xiangyz
 *
 */
@Data
public class DataSourceDO {
	
	private long sourceId;
	
	/**
	 * 数据源名称
	 */
	private String sourceName;
	
	/**
	 * 数据源编码
	 */
	private String sourceCode;
	
	/**
	 * 数据库类型 1-Oracle -2MySql
	 */
	private int sourceType;
	
	/**
	 * ip
	 */
	private String ipAddress;
	
	/**
	 * 端口
	 */
	private int port;
	
	/**
	 * 数据库名称
	 */
	private String dbName;
	
	/**
	 * 用户
	 */
	private String dbUser;
	
	/**
	 * 密码
	 */
	private String dbPassword;
	
	/**
	 * 状态
	 */
	private int status;
	
	/**
	 * 新增操作员ID
	 */
	private long createUserId;
	
	/**
	 * 创建时间
	 */
	private Date createDate;
	
	/**
	 * 修改操作员ID
	 */
	private long updateUserId;
	
	/**
	 * 更新时间
	 */
	private Date updateDate;

	@Override
	public String toString() {
		return "DataSourceDO [sourceId=" + sourceId + ", sourceName=" + sourceName + ", sourceCode=" + sourceCode
				+ ", sourceType=" + sourceType + ", ipAddress=" + ipAddress + ", port=" + port + ", dbName=" + dbName
				+ ", dbUser=" + dbUser + ", dbPassword=" + dbPassword + ", status=" + status + ", createUserId="
				+ createUserId + ", createDate=" + createDate + ", updateUserId=" + updateUserId + ", updateDate="
				+ updateDate + "]";
	}
	
}
